#include <stdio.h> 
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>

#define CPSIZE 12
char src[CPSIZE] = "this is src";
char dst[CPSIZE] = "this is dst";

int main(int argc, char** argv)
{
	int a = 100;
	float b = 3.2564;
	double c = 5478.47563;
	char *str;

	printf("Hello Loongarch32r!\n");
	printf("a = %d\n",  a);
	printf("b = %f\n",  b);
	printf("c = %lf\n", c);

    str = (char *)malloc(6);
    strcpy(str, "ABCDE");
    printf("String = %s,  Address = 0x%x\n", str, str);

	memcpy(dst, src, CPSIZE);
    printf("%s\n", dst);
  
	return 0;
}